Skip to content

Fix initProperties failing alongside processResources when test.properties is missing - #3321

Merged
labkey-jeckels merged 1 commit into
release26.11-SNAPSHOTfrom
26.11_fb_init_properties_output
Nov 25, 2026
Merged

labkey-jeckels merged 1 commit into
release26.11-SNAPSHOTfrom
26.11_fb_init_properties_output

Conversation

@labkey-jeckels

@labkey-jeckels labkey-jeckels commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Rationale

Running uiTests or ijConfigure without an existing test.properties fails Gradle 9's task validation, because initProperties was a Copy into . and so declared the entire testAutomation directory as its output, overlapping the inputs of processResources here and in data:qc.

Changes

  • initProperties now declares only test.properties as its output; it still drops #!! template lines and never overwrites an existing file

Copy's destination made the whole testAutomation directory an output, which Gradle 9 rejected alongside processResources when test.properties was missing.
@labkey-jeckels

Copy link
Copy Markdown
Contributor Author

Example failure:

> Task :server:testAutomation:data:qc:processResources FAILED
> Task :server:testAutomation:initProperties FAILED

[Incubating] Problems report is available at: file:///Users/jeckels/release26.11/repos/labkey/build/reports/problems/problems-report.html

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* What went wrong:
A problem was found with the configuration of task ':server:testAutomation:data:qc:processResources' (type 'ProcessResources').
Property has implicit dependency
  Gradle detected a problem with the following location: '/Users/jeckels/release26.11/repos/labkey/server/testAutomation/data/qc/src/main/resources'
    Task ':server:testAutomation:data:qc:processResources' uses this output of task ':server:testAutomation:initProperties' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed
    For more information, please refer to https://docs.gradle.org/9.8.1/userguide/validation_problems.html#implicit_dependency in the Gradle documentation.
    Possible solutions:
      1. Declare task ':server:testAutomation:initProperties' as an input of ':server:testAutomation:data:qc:processResources'.
      2. Declare an explicit dependency on ':server:testAutomation:initProperties' from ':server:testAutomation:data:qc:processResources' using Task#dependsOn.
      3. Declare an explicit dependency on ':server:testAutomation:initProperties' from ':server:testAutomation:data:qc:processResources' using Task#mustRunAfter.

* Try:
> Run with --scan to get full insights from a Build Scan (powered by Develocity).
==============================================================================

@labkey-jeckels labkey-jeckels self-assigned this Nov 25, 2026
@labkey-jeckels labkey-jeckels added this to the 26.11 milestone Nov 25, 2026
@labkey-jeckels
labkey-jeckels merged commit 81d37e8 into release26.11-SNAPSHOT Nov 25, 2026
9 checks passed
@labkey-jeckels
labkey-jeckels deleted the 26.11_fb_init_properties_output branch November 25, 2026 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants